package ga.stopcriterias;

import ga.individuals.Individual;

import java.util.Collection;


public class StopCriteriaContext {
	private StopStrategy strategy;
	
    public StopCriteriaContext(StopStrategy strategy) {
        this.strategy = strategy;
    }
 
    public boolean executeStrategy(Collection<Individual> population) {
        return strategy.execute(population);
    }
}